//
//  YSAccountCenterFooterView.m
//  Yueshi
//
//  Created by Northwan on 15/7/30.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSAccountCenterFooterView.h"


@interface YSAccountCenterFooterView()

@end

@implementation YSAccountCenterFooterView

+(instancetype)footerView{
    return [[[NSBundle mainBundle]loadNibNamed:@"YSAccountCenterFooterView" owner:nil options:nil]lastObject];
}

-(void)awakeFromNib{
    _currentPayMode = wxPayMode;
    [self.wxChooseBtn setSelected:YES];
}

- (IBAction)tapWxPay:(id)sender {
    _currentPayMode = wxPayMode;
    [self.wxChooseBtn setSelected:YES];
    [self.aliPayChooseBtn setSelected:NO];
}

- (IBAction)tapAlipay:(id)sender {
     _currentPayMode = alipayMode;
    [self.wxChooseBtn setSelected:NO];
    [self.aliPayChooseBtn setSelected:YES];
}

@end
